import Mock from 'mockjs'

// 生成数据列表
var userSelect = []
for (let i = 0; i < Math.floor(Math.random() * 100 + 1); i++) {
  userSelect.push(Mock.mock({
    'id': '@integer(0000000,9999999)',
    'selectstate': '@boolean',
    'username': '@cname'
  }))
}
// 获取参数列表
export function selectList () {
  return {
    // isOpen: false,
    url: '/web/selectList',
    type: 'get',
    data: {
      'msg': 'success',
      'code': 0,
      'page': {
        'totalCount': userSelect.length,
        'pageSize': 10,
        'totalPage': 1,
        'currPage': 1,
        'list': userSelect
      }
    }
  }
}
// ================================

//前台首页案件条数start
var caseCount = []
for (let i = 0; i < 1; i++) {
  caseCount.push(Mock.mock({
    'NOEND': '@integer(0000,9999)',
    'TODAYADDCASE': '@integer(0000,9999)',
    'TODAYADDOBJ': '@integer(0000,9999)'
  }))
}
// 获取参数列表
export function getCaseCount() {
  return {
    // isOpen: false,
    url: '/land/md/app/zfCase/getCaseCount',
    type: 'get',
    data: {
      'msg': 'success',
      'code': 0,
      'page': {
        'totalCount': caseCount.length,
        'pageSize': 10,
        'totalPage': 1,
        'currPage': 1,
        'data': caseCount
      }
    }
  }
}
//前台首页案件条数end

// ================================

//前台首页导航start
var indexNav = [
  {name: '入区登记',bgColor:"",iconName:'icon-box01 ',url:'zfUserEnterArea',minImg:'src/assets/ZFBA/img/vue/img-pc-windex-nbobj-icon01.png',maxImg:'src/assets/ZFBA/page/img/img-sysm-bimbcb-obj01.png'},
  {name: '在区人员',bgColor:"",iconName:'icon-box02 ',url:'zfUserInArea',minImg:'src/assets/ZFBA/img/vue/img-pc-windex-nbobj-icon02.png'},
  {name: '候审管理',bgColor:"",iconName:'icon-box03 ',url:'hsgl',minImg:'src/assets/ZFBA/img/vue/img-pc-windex-nbobj-icon03.png'},
  {name: '出区登记',bgColor:"",iconName:'icon-box04 ',url:'cqdj',minImg:'src/assets/ZFBA/img/vue/img-pc-windex-nbobj-icon04.png'},
  {name: '台账管理',bgColor:"",iconName:'icon-box05 ',url:'tzgl',minImg:'src/assets/ZFBA/img/vue/img-pc-windex-nbobj-icon05.png'},
  {name: '数据管理',bgColor:"",iconName:'icon-box06 ',url:'sjgl',minImg:'src/assets/ZFBA/img/vue/img-pc-windex-nbobj-icon06.png'},
  {name: '档案管理',bgColor:"",iconName:'icon-box00 ',url:'dagl',minImg:'src/assets/ZFBA/img/vue/img-pc-windex-nbobj-icon07.png'},
  {name: '后台管理',bgColor:"",iconName:'icon-box00 ',url:'htgl',minImg:'src/assets/ZFBA/img/vue/img-pc-windex-nbobj-icon08.png'}

]
// }
// 获取参数列表
export function IndexNav () {
  return {
    // isOpen: false,
    url: '/index/hearder/nav',
    type: 'get',
    data: {
      'msg': 'success',
      'code': 0,
      'page': {
        'totalCount': indexNav.length,
        'pageSize': 10,
        'totalPage': 1,
        'currPage': 1,
        'data': indexNav
      }
    }
  }
}
// 入区登记数据start
var rqdjData = [
  {name: '物品登记',parname: '入区登记',bgColor:"",iconName:'icon-box01 ',url:'zfinvolvedregistration',checkInStep:'10',maxImg:'src/assets/ZFBA/img/vue/img-max-sysm-bimbcb-obj09.png'},
  {name: '人身检查',parname: '入区登记',bgColor:"",iconName:'icon-box02 ',url:'zfinvolvedregistration',checkInStep:'20',maxImg:'src/assets/ZFBA/img/vue/img-max-sysm-bimbcb-obj10.png'},
  {name: '信息采集',parname: '入区登记',bgColor:"",iconName:'icon-box03 ',url:'rqdjlist',checkInStep:'0',maxImg:'src/assets/ZFBA/img/vue/img-max-sysm-bimbcb-obj11.png'},

]
// }
// 获取参数列表
export function ZqdjData () {
  return {
    // isOpen: false,
    url: '/index/main/rqdj',
    type: 'get',
    data: {
      'msg': 'success',
      'code': 0,
      'page': {
        'totalCount': rqdjData.length,
        'pageSize': 10,
        'totalPage': 1,
        'currPage': 1,
        'data': rqdjData
      }
    }
  }
}
// 入区登记数据end

// 在区人员数据start
var zqryData = [
  {name: '在区人员管理',parname: '在区人员',bgColor:"",iconName:'icon-box01 ',url:'zfInAreaList',menuType:'inArea',maxImg:'src/assets/ZFBA/img/vue/img-max-sysm-bimbcb-obj12.png'},
  {name: '历史人员管理',parname: '在区人员',bgColor:"",iconName:'icon-box02 ',url:'zfInAreaList',menuType:'historyArea',maxImg:'src/assets/ZFBA/img/vue/img-max-sysm-bimbcb-obj13.png'},

]
// }
// 获取参数列表
export function ZqryData () {
  return {
    // isOpen: false,
    url: '/index/main/zqry',
    type: 'get',
    data: {
      'msg': 'success',
      'code': 0,
      'page': {
        'totalCount': zqryData.length,
        'pageSize': 10,
        'totalPage': 1,
        'currPage': 1,
        'data': zqryData
      }
    }
  }
}
// 在区人员数据end

// 候审管理数据start
var hsglData = [
  {name: '审讯室管理',bgColor:"",iconName:'icon-box01 ',url:'sxs',maxImg:'src/assets/ZFBA/img/vue/img-max-sysm-bimbcb-obj14.png'},
  {name: '侯问室管理',bgColor:"",iconName:'icon-box02 ',url:'hws',maxImg:'src/assets/ZFBA/img/vue/img-max-sysm-bimbcb-obj15.png'},

]
// }
// 获取参数列表
export function HsglData () {
  return {
    // isOpen: false,
    url: '/index/main/hsgl',
    type: 'get',
    data: {
      'msg': 'success',
      'code': 0,
      'page': {
        'totalCount': hsglData.length,
        'pageSize': 10,
        'totalPage': 1,
        'currPage': 1,
        'data': hsglData
      }
    }
  }
}
// 候审管理数据end

// 出区登记数据start
var cqdjData = [
  {name: '出区申请',bgColor:"",iconName:'icon-box01 ',url:'cqdjlist',maxImg:'src/assets/ZFBA/img/vue/img-max-sysm-bimbcb-obj16.png'},
  {name: '出区审批',bgColor:"",iconName:'icon-box02 ',url:'cqdjlist',maxImg:'src/assets/ZFBA/img/vue/img-max-sysm-bimbcb-obj17.png'},

]
// }
// 获取参数列表
export function CqdjData () {
  return {
    // isOpen: false,
    url: '/index/main/cqdj',
    type: 'get',
    data: {
      'msg': 'success',
      'code': 0,
      'page': {
        'totalCount': cqdjData.length,
        'pageSize': 10,
        'totalPage': 1,
        'currPage': 1,
        'data': cqdjData
      }
    }
  }
}
// 出区登记数据end

// 档案管理数据start
var daglData = [
  {name: '我的档案',bgColor:"",iconName:'icon-box01 ',url:'rqdj',maxImg:'src/assets/ZFBA/img/vue/img-max-sysm-bimbcb-obj18.png'},
  {name: '档案查询',bgColor:"",iconName:'icon-box02 ',url:'xwgl',maxImg:'src/assets/ZFBA/img/vue/img-max-sysm-bimbcb-obj19.png'},
  {name: '档案刻录',bgColor:"",iconName:'icon-box02 ',url:'xwgl',maxImg:'src/assets/ZFBA/img/vue/img-max-sysm-bimbcb-obj20.png'},
  {name: '权限审批',bgColor:"",iconName:'icon-box02 ',url:'xwgl',maxImg:'src/assets/ZFBA/img/vue/img-max-sysm-bimbcb-obj21.png'},

]
// }
// 获取参数列表
export function DaglData () {
  return {
    // isOpen: false,
    url: '/index/main/dagl',
    type: 'get',
    data: {
      'msg': 'success',
      'code': 0,
      'page': {
        'totalCount': daglData.length,
        'pageSize': 10,
        'totalPage': 1,
        'currPage': 1,
        'data': daglData
      }
    }
  }
}
// 档案管理数据end

// 台账管理数据start
var tzglData = [
  {name: '入区台账',bgColor:"",iconName:'icon-box01 ',url:'rqdj',maxImg:'src/assets/ZFBA/img/vue/img-max-sysm-bimbcb-obj22.png'},
  {name: '安检台账',bgColor:"",iconName:'icon-box02 ',url:'xwgl',maxImg:'src/assets/ZFBA/img/vue/img-max-sysm-bimbcb-obj23.png'},
  {name: '法律文书',bgColor:"",iconName:'icon-box02 ',url:'flws',maxImg:'src/assets/ZFBA/img/vue/img-max-sysm-bimbcb-obj24.png'},

]
// }
// 获取参数列表
export function TzglData () {
  return {
    // isOpen: false,
    url: '/index/main/tzgl',
    type: 'get',
    data: {
      'msg': 'success',
      'code': 0,
      'page': {
        'totalCount': tzglData.length,
        'pageSize': 10,
        'totalPage': 1,
        'currPage': 1,
        'data': tzglData
      }
    }
  }
}
// 台账管理数据end

//前台首页导航end

// ================================
// 生成入区登记列表start
var rqdjWpdjUserSelect = []
for (let i = 0; i < Math.floor(Math.random() * 100 + 1); i++) {
  rqdjWpdjUserSelect.push(Mock.mock({
    'userno': '@integer(000000000000000000,999999999999999999)',
    'userdate': '@datetime()',
    'userimage': '/src/assets/ZFBA/img/abmtx.png',
    'userwpdj': 'rqdjwpdj',
    'userrsjc': 'rqdjrsjc',
    'userxxcj': 'rqdjxxcj',
    'username': '@cname'
  }))
}
// 获取参数列表
export function RqdjWpdjUserSelect () {
  return {
    // isOpen: false,
    url: '/web/rqdjWpdjUserList',
    type: 'get',
    data: {
      'msg': 'success',
      'code': 0,
      'page': {
        'totalCount': rqdjWpdjUserSelect.length,
        'pageSize': 10,
        'totalPage': 1,
        'currPage': 1,
        'list': rqdjWpdjUserSelect
      }
    }
  }
}
// 生成入区登记列表end
// ================================
// 生成在区人员列表start
var zqryUserList = []
for (let i = 0; i < Math.floor(Math.random() * 100 + 1); i++) {
  zqryUserList.push(Mock.mock({
    'userno': '@integer(000000000000000000,999999999999999999)',
    'userdate': '@datetime()',
    'userimage': '/src/assets/ZFBA/img/abmtx.png',
    'userzqry': 'zqryzqrygl',
    'userryxq': 'zqryinfo',
    'username': '@cname'
  }))
}
// 获取参数列表
export function ZqryUserList () {
  return {
    // isOpen: false,
    url: '/web/zqryUserList',
    type: 'get',
    data: {
      'msg': 'success',
      'code': 0,
      'page': {
        'totalCount': zqryUserList.length,
        'pageSize': 10,
        'totalPage': 1,
        'currPage': 1,
        'list': zqryUserList
      }
    }
  }
}
// 生成在区人员列表end
// ================================
